<!--添加用户表单-->
<div class="tab_edit">
    <form action="{:Url('loan_audit_submit')}" method="post" id="loan_audit_submit">
        <input type="hidden" name="loan_product_id" value="{$loan_product_id}"/>
        <table width="100%" class="list">
            <tr>
                <td class="t_r t_left_w">贷款产品编号：</td>
                <td class="t_l">{$loan_info['loan_product_id']}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">贷款产品名称：</td>
                <td class="t_l">{$loan_info['loan_product_name']}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信贷经理所属公司：</td>
                <td class="t_l">{:widget('common/Name/agent',array($loan_info["agent_id"]))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">信贷经理：</td>
                <td class="t_l">{:widget('common/Name/agent_admin',array($loan_info["agent_admin_id"]))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">有效区域：</td>
                <td class="t_l">
                    <div class="lists-tab-cont" style="width: 810px;border: 1px solid #ddd;">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <thead>
                                <tr>
                                    <th width="70%" class="tabSort-header">有效区域省份/城市<font color="red">（默认：不填表示全国有效！)</font></th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach name="product_area_list" item="info"}
                                    <tr class="info">
                                        <td>{:widget('common/Name/area',array($info['province']))}、{:widget('common/Name/area',array($info['city']))}</td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">抵押方式：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('loan_pledge','loan_pledge',$loan_info['loan_pledge'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">还款方式：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('loan_repayment','loan_repayment',$loan_info['loan_repayment'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">最小/最大贷款金额 ：</td>
                <td class="t_l">{:widget("common/Input/input",array("min_loan_money",$loan_info['min_loan_money'],true,true))}（单位：万元）～{:widget("common/Input/input",array("max_loan_money",$loan_info['max_loan_money'],true,true))}（单位：万元）</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">最小/最大贷款期限 ：</td>
                <td class="t_l">{:widget("common/Input/input",array("min_period",$loan_info['min_period'],true,true))}（单位：月数）～{:widget("common/Input/input",array("max_period",$loan_info['max_period'],true,true))}（单位：月数）</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">是否有车：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('is_car','is_car',$loan_info['is_car'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">是否有保单：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('is_policy','is_policy',$loan_info['is_policy'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">本市是否有房产：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('is_house','is_house',$loan_info['is_house'],true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">职业身份要求：</td>
                <td class="t_l">{:widget('common/CheckBox/checkbox',array('loan_identity','identity',$loan_info['loan_identity_list'],null,null,true,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">月利率：</td>
                <td class="t_l">{empty name="$loan_info['month_rate']"}--{else/}{$loan_info["month_rate"]}%{/empty}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">一次性费用：</td>
                <td class="t_l">{empty name="$loan_info['nonrecurring_rate']"}--{else/}{$loan_info["nonrecurring_rate"]}%{/empty}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">标签：</td>
                <td class="t_l">{empty name="$loan_info['loan_tag_str']"}--{else/}{$loan_info["loan_tag_str"]}{/empty}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">详细内容：</td>
                <td class="t_l">{empty name="$loan_info['loan_content_txt']"}--{else/}{$loan_info["loan_content_txt"]}{/empty}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">详细图片：</td>
                <td class="t_l">
                    {empty name="$loan_info['loan_content_img']"}
                    --
                    {else/}
                    {foreach name="$loan_info['loan_content_img']" item="info"}
                    {:widget('common/Images/img',array($info,150,150))}
                    {/foreach}
                    {/empty}
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w">排序：</td>
                <td class="t_l">{$loan_info['order_by']}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">备注：</td>
                <td class="t_l">{empty name="$loan_info['remark']"} -- {else/}{$loan_info['remark']}{/empty}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">审核状态：</td>
                <td class="t_l">{:widget('common/Radio/radio',array('loan_status','loan_status_temp',null,true))}</td>
            </tr>
            <tr>
                <td class="t_r t_left_w">审核说明：</td>
                <td class="t_l">
                    {:widget('common/TextArea/text_area',array('audit_note',null,false,false,"width:800px;"))}
                </td>
            </tr>
            <tr>
                <td class="t_r t_left_w"></td>
                <td class="t_l">
                    <div class="btn"><input type="submit" class="but_blue" value="保存信息"></div>
                </td>
            </tr>

        </table>
    </form>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("#loan_audit_submit").submit(function(){
            //判断是否选择是否
            if($("input[name='loan_status']:checked").val() == 3){

                //判断是否填写失败理由
                if($.trim($("textarea[name='audit_note']").val()) == ""){
                    alert("请填写审核失败说明！");
                    return false;
                }
            }

            //审核通过
            return true;
        });
    });
</script>